//
//  NSMutableDictionary+Category.m
//  HMDemo
//
//  Created by mengxiangyu on 2017/6/21.
//  Copyright © 2017年 mengxiangyu. All rights reserved.
//

#import "NSMutableDictionary+Category.h"

@implementation NSMutableDictionary (Category)
- (void)setUnnilValue:(id)value forKey:(NSString *)aKey {
    if (value) {
        [self setValue:value forKey:aKey];
    } else {
        NSLog(@"%@ is nil", aKey);
    }
}

- (void)setUnnilObject:(id)anObject forKey:(NSString *)aKey {
    if (anObject) {
        [self setObject:anObject forKey:aKey];
    } else {
        NSLog(@"%@ is nil", aKey);
    }
}
@end
